﻿<%@ Page Language="C#" AutoEventWireup="true"
    Inherits="BaseData_ExpressCompanyEdit" Codebehind="ExpressCompanyEdit.aspx.cs" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>无标题页</title>
    <style type="text/css">
.menu_bg2 {width:100%;background-color:#cccccc;text-align:left;margin:10px 0 10px 0;padding-top:5px;border:#CCCCCC 0px solid; font-size:12px;padding-left:20px;}
.jiacu {float:left; font-weight:bold;padding-top:5px;}
.input_button10 {width:74px;height:23px;border:none;cursor:pointer; background:#ffffff url(../Include/Images/bt1.gif) no-repeat;margin-bottom:5px;margin-left:5px;}
</style>

    <script>
    function POP(value)
    {
        var code=document.getElementById("Hid_code").value;
        if(value!=null)
        {
            if(code.length>0)
            {
                window.open("ExpressCompanyPOP.aspx?code="+code+"&id="+value);
            }
        }
        else
        {            
            if(code.length>0)
            {
                window.open("ExpressCompanyPOP.aspx?code="+code);
            }
        }
    }
    function POPArea(value1,value2)
    {
        window.open("POPArea.aspx?code="+value1+"&area="+value2);
    }
    </script>

</head>
<body>
    <form id="form1" runat="server">
        <div align="Justify">
            <h2>
                <asp:Label ID="Label1" runat="server" Text="新增物流公司"></asp:Label></h2>
            <div class="menu_bg">
                <input id="Hid_code" type="hidden" runat="server" />
                　　代码：<asp:TextBox ID="txtCode" runat="server"></asp:TextBox><br />
                　　名称：<asp:TextBox ID="txtName" runat="server"></asp:TextBox><br />
                　联系人：<asp:TextBox ID="txtContacter" runat="server"></asp:TextBox><br />
                固定电话：<asp:TextBox ID="txtPhone" runat="server"></asp:TextBox><br />
                　　手机：<asp:TextBox ID="txtMobile" runat="server"></asp:TextBox><br />
                　　网址：<asp:TextBox ID="URL" runat="server"></asp:TextBox><br />
               
               <table><tr><td>前台显示：</td><td><asp:RadioButtonList ID="RadioButtonList1" runat="server" RepeatDirection="Horizontal"
                    >
                    <asp:ListItem Value="1" Selected="True">是</asp:ListItem>
                    <asp:ListItem Value="0">否</asp:ListItem>
                </asp:RadioButtonList></td></tr></table>
                <br />
              
                　　停用：<asp:RadioButton ID="rbtnUsableYes" runat="server" Text="是" GroupName="Usable"
                    Checked="true" />
                <asp:RadioButton ID="rbtnUsableNo" runat="server" Text="否" GroupName="Usable" /><br />
                &nbsp; &nbsp; 排序号：<asp:TextBox ID="txtSort" runat="server"></asp:TextBox><br />
                物流单图片：<asp:Image ID="imgExpressBill" runat="server" />
                <asp:Image ID="Image1" runat="server" Visible="false" /><br />
                
                <input id="File1" type="file" runat="server" />&nbsp;
                <asp:Button ID="btnUpload" runat="server" CssClass="input_button" Text="上传" OnClick="btnUpload_Click" />
                <br />
                <div>
                    <div style="float: left;">
                        　　备注：</div>
                    <asp:TextBox ID="txtNotes" runat="server" Width="150" TextMode="MultiLine"></asp:TextBox></div>
                <br />
                <asp:Button ID="btnAddOrUpdate" runat="server" Text="Button" CssClass="input_button"
                    OnClick="btnAddOrUpdate_Click" />
                <asp:Button ID="btnCancel" runat="server" Text="取消" CssClass="input_button" OnClick="btnCancel_Click" /><br />
            </div>
            <br />
            <div class="menu_bg2">
                <span class="jiacu">明细标准</span><input id="Button1" type="button" class="input_button10"
                    value="新增明细" onclick="POP()" /></div>
            <div class="juli">
                <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                    <HeaderTemplate>
                        <table class="tb" border="0" cellspacing="1" cellpadding="0">
                            <tr class="z1">
                                <td class="zt3">
                                    首重</td>
                                <td class="zt3">
                                    首重价格</td>
                                <td class="zt3">
                                    续重</td>
                                <td class="zt3">
                                    续重价格</td>
                                <td class="zt3">
                                    修改重量
                                </td>
                                <td class="zt3">
                                    删除
                                </td>
                                <td class="zt3">
                                    关联区域
                                </td>
                            </tr>
                    </HeaderTemplate>
                    <ItemTemplate>
                        <tr class="z2">
                            <td class="zt7">
                                <%#Eval("TC_FWEIGHT") %>
                            </td>
                            <td class="zt7">
                                <%#Eval("TC_FWEIGHTPRICE") %>
                            </td>
                            <td class="zt7">
                                <%#Eval("TC_NWEIGHT")%>
                            </td>
                            <td class="zt7">
                                <%#Eval("TC_NWEIGHTPRICE") %>
                            </td>
                            <td class="zt4">
                                <a href="Javascript:" class="lj" onclick=<%#"POP('"+Eval("TC_DETAILCODE").ToString()+"')" %>>
                                    修改</a></td>
                            <td class="zt4">
                                <asp:LinkButton ID="LinkButton1" runat="server" CommandName="Delete" CommandArgument='<%#Eval("TC_DETAILCODE") %>'>删除</asp:LinkButton>
                            </td>
                            <td class="zt4">
                                <a href="Javascript:" class="lj" onclick=<%#"POPArea('"+Eval("TC_TRANERCODE").ToString()+"','"+Eval("TC_DETAILCODE").ToString()+"')" %>>
                                    关联区域</a></td>
                        </tr>
                    </ItemTemplate>
                    <FooterTemplate>
                        </table></FooterTemplate>
                </asp:Repeater>
            </div>
        </div>
    </form>
</body>
</html>
